package com.ruoyi.spider.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 爬虫文章对象 spider_article
 * 
 * @author 小光头
 * @date 2021-01-13
 */
public class SpiderArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，文章ID */
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 来源的网址 */
    @Excel(name = "来源的网址")
    private String webUrl;

    /** 网站的编号 */
    @Excel(name = "网站的编号")
    private Long webId;

    /** 删除(0：不删除，1：已删除) */
    @Excel(name = "删除(0：不删除，1：已删除)")
    private Integer isdel;

    /** 文章的首页图 */
    @Excel(name = "文章的首页图")
    private String fristImg;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setWebUrl(String webUrl) 
    {
        this.webUrl = webUrl;
    }

    public String getWebUrl() 
    {
        return webUrl;
    }
    public void setWebId(Long webId) 
    {
        this.webId = webId;
    }

    public Long getWebId() 
    {
        return webId;
    }
    public void setIsdel(Integer isdel) 
    {
        this.isdel = isdel;
    }

    public Integer getIsdel() 
    {
        return isdel;
    }
    public void setFristImg(String fristImg) 
    {
        this.fristImg = fristImg;
    }

    public String getFristImg() 
    {
        return fristImg;
    }

/*    @Override
    public String toString() {
        return "SpiderArticle{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", source='" + source + '\'' +
                ", webUrl='" + webUrl + '\'' +
                ", webId=" + webId +
                ", isdel=" + isdel +
                ", fristImg='" + fristImg + '\'' +
                '}';
    }*/
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("source", getSource())
            .append("webUrl", getWebUrl())
            .append("webId", getWebId())
            .append("isdel", getIsdel())
            .append("createTime", getCreateTime())
            .append("fristImg", getFristImg())
            .toString();
    }
}
